package com.homework.ch07.inner1;

import com.briup.ch07.inners.Outer;

public class outer1 {
    public String name="外部类成员属性";
    private int age=10;
    public static int count=1;
    public class innerOBJ{
        public int a;
        public String name="成员内部类";

        public void print()
        {
            hello();
            System.out.println(outer1.this.name);
            System.out.println(age);
            System.out.println(count);
        }
    }
    public void printinner1(){
        innerOBJ inner1=this.new innerOBJ();
        System.out.println(inner1.name);
        inner1.print();

    }
    public void hello()
    {
        System.out.println("外部类的hello成员方法");
    }
}
